﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace produccion.clases
{
    class CLSDETDEVP:ObservableObject
    {
        public int insertar() {
            try {
                string query = "insert into detdevp (NRODEV_DDV,CONSEC_DDV,CODREF_DDV,CODCOL_DDV,CODTAL_DDV,CANPRO_DDV,CODDAN1_DDV,CODDAN2_DDV,CODDAN3_DDV,CODPIE_DDV,CODRES_DDV,CODCAU_DDV,CODSOL_DDV,CODDEC_DDV,TIPO_DDV,NROORD_DDV) values ('"+NRODEV_DDV+"',"+CONSEC_DDV+",'"+CODREF_DDV+"','"+CODCOL_DDV+"','"+CODTAL_DDV+"',"+CANPRO_DDV+",'"+CODDAN1_DDV+"','"+CODDAN2_DDV+"','"+CODDAN3_DDV+"','"+CODPIE_DDV+"','"+CODRES_DDV+"','"+CODCAU_DDV+"','"+CODSOL_DDV+"','"+CODDEC_DDV+"','"+TIPO_DDV+"','"+NROORD_DDV+"')";
                return mod.comando(query);
            }
            catch (Exception ex) { throw ex; }
        }

 
        
        MDOgeneral mod = new MDOgeneral();

        private string _NRODEV_DDV;
        public string NRODEV_DDV{
        get{return _NRODEV_DDV;}
            set{_NRODEV_DDV=value;
            RaisePropertyChangedEvent("NRODEV_DDV");
            }
        }
        
        private int _CONSEC_DDV;
        public int CONSEC_DDV{
        get{return _CONSEC_DDV;}
            set{
            _CONSEC_DDV=value;
            RaisePropertyChangedEvent("CONSEC_DDV");
            }
        }

        private string _CODREF_DDV;
        public string CODREF_DDV{
        get{return _CODREF_DDV;}
            set{
            _CODREF_DDV=value;
            RaisePropertyChangedEvent("CODREF_DDV");
            }
        }

        private string _CODCOL_DDV;
        public string CODCOL_DDV{
        get{return _CODCOL_DDV;}
            set{_CODCOL_DDV=value;
            RaisePropertyChangedEvent("CODCOL_DDV");
            }
        
        }

        private string _CODTAL_DDV;
        public string CODTAL_DDV{
        get{return _CODTAL_DDV;}
            set{_CODTAL_DDV=value;
            RaisePropertyChangedEvent("CODTAL_DDV");
            }
        }

        private int _CANPRO_DDV;
        public int CANPRO_DDV{
        get{return _CANPRO_DDV;}
            set{_CANPRO_DDV=value;
            RaisePropertyChangedEvent("CANPRO_DDV");
            }
        }

        private string _CODDAN1_DDV;
        public string CODDAN1_DDV{
        get{ return _CODDAN1_DDV;}
        set{_CODDAN1_DDV=value;
        RaisePropertyChangedEvent("CODDAN1_DDV");
        }
        
        }

        private string _CODDAN2_DDV;
        public string CODDAN2_DDV{
            get{return _CODDAN2_DDV; }
            set{_CODDAN2_DDV=value;
            RaisePropertyChangedEvent("CODDAN2_DDV");
            }
        }

        private string _CODDAN3_DDV;
        public string CODDAN3_DDV{
            get{return _CODDAN3_DDV;}
            set{_CODDAN3_DDV=value;
            RaisePropertyChangedEvent("CODDAN3_DDV");
            }
        }

        private string _CODPIE_DDV;
        public string CODPIE_DDV{
            get{return _CODPIE_DDV;}
            set{_CODPIE_DDV=value;
            RaisePropertyChangedEvent("CODPIE_DDV");
            }
        
        }

        private string _CODRES_DDV;
        public string CODRES_DDV{
        get{return _CODRES_DDV;}
            set{_CODRES_DDV=value;
            RaisePropertyChangedEvent("CODRES_DDV");
            }
        }

        private string _CODCAU_DDV;
        public string CODCAU_DDV{
            get{return _CODCAU_DDV;}
            set{
            _CODCAU_DDV=value;
            RaisePropertyChangedEvent("CODCAU_DDV");
            }
        }

        private string _CODSOL_DDV;
        public string CODSOL_DDV{
            get{return _CODSOL_DDV;}
            set{_CODSOL_DDV=value;
            RaisePropertyChangedEvent("CODSOL_DDV");
            }
        }

        private string _CODDEC_DDV;
        public string CODDEC_DDV{
            get{return _CODDEC_DDV;}
            set{_CODDEC_DDV=value;
            RaisePropertyChangedEvent("CODDEC_DDV");
            }
        }

        private string _TIPO_DDV;
        public string TIPO_DDV{
        get{return _TIPO_DDV;}
            set{_TIPO_DDV=value;
            RaisePropertyChangedEvent("TIPO_DDV");
            }
        }
        
        private string _NROORD_DDV;
        public string NROORD_DDV{
            get{return _NROORD_DDV;}
            set{_NROORD_DDV=value;
            RaisePropertyChangedEvent("NROORD_DDV");
            }
        }

    }
}
